<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<link rel="stylesheet" href="resources/mytheme/css/main.css">
<link rel="stylesheet" type="text/css" href="resources/mytheme/css/jquery-ui.css">
<script type="text/javascript" src="resources/js/jQuery.js"></script>
<script type="text/javascript" src="resources/js/jquery-ui.js"></script>
<script type="text/javascript" src="resources/js/script.js"></script>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<script type="text/javascript">
	function onload() {
		document.loginForm.username.focus();
	}
</script>

<title>Member Login</title>


</head>
<body onload="onload()">
	<div id="headerContainer">
		<div class="centerContainer">
			<ol>
			<sec:authorize ifAllGranted="ROLE_ADMIN">
				<li><a href="AdminUsers">Users</a></li>
				<li><a href="AdminRejectedClaims">Rejected Claims</a></li>
				<li><a href="AdminAcceptedClaims">Accepted Claims</a></li>
				<li><a href="AdminAllClaims">All Claims</a></li>
			</sec:authorize>
			<sec:authorize ifAnyGranted="ROLE_ADMIN, ROLE_ADJUSTER">
				<li><a href="InsuranceAdjuster">Adjust Claims</a></li>
			</sec:authorize>
			</ol>
		</div>
		<!-- /centerContainer -->

	</div>
	<!-- /headerContainer -->

	<div id="secondHeaderContainer">
		<div class="logoContainer">
			<img src="resources/mytheme/images/logo2.png" alt="logo" width="205"
				height="89">
		</div>
		<!-- /logoContainer -->
		<div class="navContainer">

			<ul id="navWrapper">
				<li><a href="/AcmeClaims">Home</a></li>
				<sec:authorize ifNotGranted="ROLE_ADMIN">
				<c:if test="${pageContext.request.userPrincipal.name != null}">
					<li>
						<!-- Menu A --> <a href="#">Claims</a>
						<ul>
							<li><a href="ClaimPortal">Submit Claim</a></li>
							<li><a href="MyAccount">View Claim</a></li>
						</ul>
					</li>
					<li><a href="MyAccount">My Account</a></li>
				</c:if>
				</sec:authorize>
				<li><a href="locatedoctor">Find a Doctor</a></li>
			</ul>
		</div>
		<!-- /navContainer -->
	</div>
	<!-- /secondHeaderContainer -->

	<div id="thirdHeaderContainer">
		<div class="lowerheaderContainer">
			<c:if test="${pageContext.request.userPrincipal.name != null}">
				<ol>
					<li><a href="<c:url value="/MyAccount" />">${pageContext.request.userPrincipal.name}</a></li>
					<li>|</li> 
	                <li><a href="<c:url value="/Logout" />" > Logout</a></li>
                 </ol> 
			</c:if>
			<c:if test="${pageContext.request.userPrincipal.name == null}">
				<ol>
					<li><a href="Login">Log-In</a></li>
					<li>|</li>
					<li><a href="register">Register</a></li>
				</ol>
			</c:if>
		</div>
		<!-- /lowerHeader-->
	</div>
	<!--/thirdHeaderContainer"-->
	
	<div id="mainCenterHolder">
	<div class="mainCenterContainerLogin">
	<br>
	 <center><div id="linething2"><p>Please Enter Your Information</p></div></center>
		<br>
		<center>
		<form name="loginForm" action="${loginUrl}" method="post">
			<table cellpadding="0" cellspacing="8" border="0">
				<tr>
					<td align="right">User Name</td>
					<td align="left"><input type="text" name="username" /></td>
				</tr>
				<tr>
					<td align="right">Password</td>
					<td align="left"><input type="password" name="password" /></td>
				</tr>
				</table>
				<table cellpadding="0" cellspacing="3" border="0">
				<tr>
					<td align="right"></td>
					<td align="center"><input type="submit" value="Sign In" />
					<br>
					</td>
					</tr>
			</table>
				<div id="errorMessages">
		<c:if test="${not empty error}">
			<div class="error">${error}</div>
		</c:if>
		<c:if test="${not empty msg}">
			<div class="msg">${msg}</div>
		</c:if>
	</div>
			<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
			<div id="linething"></div>
			<c:if test="${pageContext.request.userPrincipal.name == null}">
				<table cellpadding="0" cellspacing="15" border="0">
				<tr>
						<td align="right">
							<a href="${pageContext.request.contextPath}/resetpassword">Forgot Password</a>
						</td>
						<td align="right">
								<a href="${pageContext.request.contextPath}/resetusername">Forgot Username</a>
						</td>
						<td align="right">
							<a class="open-dialog" href="#">Login Help?</a>
						</td>
					</tr>
				</table>
			</c:if>
		</form>
		</center>
		<div class="dialog">
        <div>
            <div id="accordion">
                <h3>What if I forgot my Username?</h3>
                <div>
                Acme Insurance provides an online <a href="${pageContext.request.contextPath}/resetusername">Forgot Username</a> 
                tool to help you retrieve your Username. To keep your information secure, we will send a reset link to the email address provided at registration.
                If you have trouble retrieving your User ID through our online tool, please call us at Acme Insurance Customer Service at 1.800.123.4567.
                </div>

                <h3>What if I forgot my Password?</h3>
                <div>
                Acme Insurance provides an online <a href="${pageContext.request.contextPath}/resetpassword">Forgot Password</a> tool to assist in resetting your password. To protect your information, 
                your password can only be reset with a link that will be sent to the email address provided at registration.
                If you have trouble resetting your Password through our online tool, please call us at Acme Insurance Customer Service at 1.800.123.4567.
                </div>

                <h3>What if I forgot both Username and Password?</h3>
                <div>
                If you do not recall either your Username or Password, please use the online Forgot Username tool to assist in retrieving your User ID first. 
                Once you have retrieved your Username, please use the online Forgot Password tool to help reset your password.
                </div>

                <h3>Where can I get more answers about Acme Insurance?</h3>
                <div>
                If you have questions about how Acme Insurance operates and what features are available, 
                please talk to a Acme Insurance representative. Call Acme Insurance Customer Service at 1.800.123.4567.
                </div>
            </div>
        </div>
      </div>
	</div>
	</div>

<div id="footer">
	<div class="footerwrap">
	<div class="foota">
	<br>
	<p>Connect With Us</p>
		<div id="footapad"><a href="#"><img src="resources/mytheme/images/fb.png" id="facebook" alt="logo" width="67" height="73"/></a>
		<a href="#"><img src="resources/mytheme/images/twit.png" id="twitter" alt="logo" width="65" height="73"/></a>
		<a href="#"><img src="resources/mytheme/images/pin.png" id="pintrest" alt="logo" width="67" height="73"/></a>
		
		
		</div>
	</div>
	<div class="footb">
	<br>
		<p>Toll Free: 1-800-382-3827</p>
		  <ol>
			<li>Acme Corporate</li>
			<li>143 23rd Ave South</li>
			<li>Fargo, North Dakota 58121</li>
		</ol>
	</div>
	<div class="footc">
	<br>
		<p>Need Help?</p>
		  <ol>
			<li><a href="#">Contact Us</a></li>
			<li><a href="#">Get Directions</a></li>
			<li><a href="#">FAQ's</a></li>
		</ol>
		 
	</div>
	</div><!-- FooterWrap -->
</div><!-- Footer -->

</body>
</html>